bitkeeper revision 1.1361 (42680a63VNdw2vcBm5FrW2nhMZ_Ovw)
authormaf46@burn.cl.cam.ac.uk <maf46@burn.cl.cam.ac.uk>
Thu, 21 Apr 2005 20:17:39 +0000 (20:17 +0000)
committermaf46@burn.cl.cam.ac.uk <maf46@burn.cl.cam.ac.uk>
Thu, 21 Apr 2005 20:17:39 +0000 (20:17 +0000)
Fix another bug introduced in the shadow code with the new page table entry macros.

Signed-off-by: michael.fetterman@cl.cam.ac.uk
xen/arch/x86/shadow.c

index 253eab50437eebfb41985189d744634cf01a76a3..a91e9ad3bfab916a39ad2f2cc2ac3bc11605c7ab 100644 (file)
@@ -2456,7 +2456,7 @@ int shadow_fault(unsigned long va, struct xen_regs *regs)
      * STEP 2. Check the guest PTE.
      */
     __guest_get_l2e(ed, va, &gpde);
-    if ( unlikely(!(l1e_get_flags(gpte) & _PAGE_PRESENT)) )
+    if ( unlikely(!(l2e_get_flags(gpde) & _PAGE_PRESENT)) )
     {
         SH_VVLOG("shadow_fault - EXIT: L1 not present" );
         perfc_incrc(shadow_fault_bail_pde_not_present);